const axios = require('axios')


exports.get = ({url, params = {}}) => {
  return axios({
    url,
    params
  }).then(res => res.data)
}

exports.all = (promiseArr) => axios.all(promiseArr).then(axios.spread((...resultList) => {return resultList}))

exports.all = (promiseArr) => {
  return axios.all(promiseArr)
    .then(axios.spread((...reresultLists) => {
    return reresultLists
  }))
}